import request from '@/utils/request'

// 获取回收站文件列表
export function LoadRecycleList(params, errorCallback, showLoading) {
    return request({
        url: `/recycle/loadRecycleList`,
        params: params,
        showLoading: showLoading?showLoading:true,
        errorCallback: errorCallback
    })
}

//恢复文件
export function RecoverFile(params, errorCallback, showLoading) {
    return request({
        url: `/recycle/recoverFile`,
        params: params,
        showLoading: showLoading?showLoading:true,
        errorCallback: errorCallback
    })
}

//恢复文件
export function DelFile(params, errorCallback, showLoading) {
    return request({
        url: `/recycle/delFile`,
        params: params,
        showLoading: showLoading?showLoading:true,
        errorCallback: errorCallback
    })
}

